#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include "Editor.h"
#include "Options.h"
namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = nullptr);
    ~MainWindow();
protected slots:
    void onOpen();
    void onSave();
    void onSaveAs();
    void onExie();
    void onClose();
    void onOptions();

    void onFontChange();
protected:
    void initUI();
private:
    Ui::MainWindow *ui;
    Editor*_editor;
    Options*_options;
protected:
};

#endif // MAINWINDOW_H
